package com.cc8w.home.controller;


import com.cc8w.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home/index")
public class IndexController {
    @Autowired
    private UserService userServiceImpl;


    @RequestMapping("/index")
    public Object index(){

        System.out.println(222);
        return userServiceImpl.getUser(1);

    }



}
